package com.itheima.test02;

public class Test02 {

    public static void main(String[] args) {
        Zi zi = new Zi();
        zi.sing();
        Fu.dance();
        Zi.dance();


    }
}

class Fu {
    public void sing() {
        System.out.println(
                "我喜欢摇滚"
        );
    }


    private int  getmax(int a,int b){
        return a>b?a:b;
    }
    public static void dance(){
        System.out.println("蹦迪去了");
    }

     void rap(){}
}

class Zi extends Fu {
    @Override/* 注解 */
    public void sing() {
       super.sing();
        System.out.println("我喜欢敲代码");

    }
    //@Override 私有方法不能重写
    private int  getmax(int a,int b){
        return a>b?a:b;
    }
   // @Override
    public static void dance(){
        System.out.println("儿子蹦迪去了");
    }
    @Override
    protected  void rap(){}
}